package com.ruben.vistor;

/**
 * 客户端
 *
 * @author <achao1441470436@gmail.com>
 * @since 2021/7/18 14:26
 */
public class Client {
    public static void main(String[] args) {
        Element a = new ElementA();
        Element b = new ElementB();
        execute(a);
        execute(b);
    }

    private static void execute(Element e) {
        ConcreteVisitors visitors = new ConcreteVisitors();
        visitors.accept(e);
    }
}
